package com.mushuilingfeng.ddd.user.infrastructure.base;

import com.mushuilingfeng.ddd.user.domain.base.service.PropertyService;
import jakarta.annotation.Resource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

/**
 * @author 沐水淋风
 * @date 2024/10/5
 */
@Service
public class PropertyServiceImpl implements PropertyService {
    
    @Resource
    private Environment env;
    
    @Override
    public String getProperty(String key, String defaultValue) {
        return env.getProperty(key, defaultValue);
    }
    
}
